package com.itheima.Test;

public class Test10 {
    public static void main(String[] args) {
        int num = 121;
        int temp = num;
        int result = 0;
        while(temp != 0) {
            int ge = temp % 10;
            temp = temp / 10;
            result = result * 10 + ge;
        }
        if(result == num) {
            System.out.println("是回文数");
        } else {
            System.out.println("不是回文数");
        }
    }
}
